package com.huawei.appgallery.forum.user.usercenter.node;

import android.content.Context;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.view.ViewGroup.LayoutParams;
import android.widget.LinearLayout;
import com.huawei.appgallery.forum.base.card.ForumNode;
import com.huawei.appgallery.forum.user.usercenter.card.ForumUserHeadCard;
import o.cbb.d;
import o.cih;

public class ForumUserHeadNode extends ForumNode {
    public ForumUserHeadNode(Context context) {
        super(context);
    }

    public boolean ˊ(ViewGroup viewGroup, ViewGroup viewGroup2) {
        LayoutParams layoutParams = new LinearLayout.LayoutParams(-1, -2);
        layoutParams.weight = 1.0f;
        View inflate = LayoutInflater.from(this.ॱ).inflate(d.ˏ, null);
        cih forumUserHeadCard = new ForumUserHeadCard(this.ॱ);
        forumUserHeadCard.ˏ(inflate);
        ˊ(forumUserHeadCard);
        viewGroup.addView(inflate, layoutParams);
        return true;
    }
}
